import { jtRequest } from "./index"

// 热门搜索接口
export function getSearchHot() {
  return jtRequest.get({
    url: "/search/hot"
  })
}

// 搜索建议 
export function getSearchSuggest(keywords) {
  return jtRequest.get({
    url: "/search/suggest",
    data: {
      keywords,
      type: "mobile"
    }
  })
}

// 搜索结果
export function getSearchResult(keywords) {
  return jtRequest.get({
    url: "/search",
    data: {
      keywords
    }
  })
}